import http from '@/utils/http';

const dictionary = {
  //字典类型页面
  query(params: any) {
    let url = '/Dictionary/Query';
    return http.post(url, params);
  },
  //字典详情
  detail(id: Number) {
    let url = '/Dictionary/Detail';
    let params = { id: id };
    return http.get(url, params);
  },
  //字保存
  save(role: Object) {
    let url = '/Dictionary/Save';
    return http.post(url, role);
  },
  getComboBox(category: string) {
    let url = '/Dictionary/getComboBox';
    let params = { category };
    return http.get(url, params);
  },
  //获取组合列表
  getComboBoxs() {
    let url = '/Dictionary/GetComboBoxs';
    return http.get(url);
  },
};
export default dictionary;
